<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <input type="text" v-model="num">
        <button v-on:click="num++">关注</button>
        <h2>
            {{name}},非常棒!!! 有{{num}}个人为他点赞。
        </h2>
    </div>
    <script src="./node_modules/vue/dist/vue.min.js"></script>
    <script>
         //创建Vue实例
         let app = new Vue({
            el:"#app", //el即element，该vue实例要渲染的页面元素
            data:{     //渲染页面所需的数据
                name:"张三",
                num: 5
            }
        })
    </script>
</body>
</html>